import type { App } from 'vue'

import {
  ElLoading as _ElLoading,
  ElMessage as _ElMessage,
  ElMessageBox as _ElMessageBox,
  ElNotification as _ElNotification,
  ElScrollbar as _ElScrollbar
} from 'element-plus'
import 'element-plus/dist/index.css'

function install(app: App) {
  app.use(_ElLoading)
  app.use(_ElMessageBox)
  app.use(_ElMessage)
  app.use(_ElNotification)
  app.use(_ElScrollbar)
  return app
}

export const ElLoading = _ElLoading
export const ElMessage = _ElMessage
export const ElMessageBox = _ElMessageBox
export const ElNotification = _ElNotification
export const ElScrollbar = _ElScrollbar

export default install
